package com.求点数最大;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Solution {
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        System.out.println(find(n));
	}
	static List<List<Integer>> result = new ArrayList<List<Integer>>();
	public static int find(int n){
		List<Integer> a = new ArrayList<Integer>();
		count(n,a);
		return result.size();
		
	}
	public static void count(int n,List<Integer> list) {
		int sum=0;
		for(int i:list) {
			sum=sum+i;
		}
		if(sum>n)return;
		else if(sum==n) result.add(new ArrayList<Integer>(list));
		else {
			for(int i=1;i<=n;i++) {
				list.add(i);
				count(n,list);
				list.remove(list.size()-1);
			}
		}
		
	}

}
